package com.mini.mysql.repository;

import com.mini.mysql.model.BusinessPlanInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 项目名称：mini-data-es
 * 类 名 称：BusinessPlanInfoRepository
 * 类 描 述：TODO
 * 创建时间：2021/4/19 下午7:44
 * 创 建 人：zhanghuiying
 */
@Repository
public interface BusinessPlanInfoRepository extends JpaRepository<BusinessPlanInfo,Integer>, JpaSpecificationExecutor<BusinessPlanInfo> {

    List<BusinessPlanInfo> findByPlanSiteIn(List<Integer> collect);

    BusinessPlanInfo findByPlanSite(Integer planId);
}
